clear
set obs  100 

gen year = _n + 1987
drop if year > 2019

g cpi = 1 if year==2013
    replace cpi=1.046429 if year==2019
    replace cpi=1.035286 if year==2018
    replace cpi=1.02313 if year==2017
	replace cpi=1.01743573 if year==2016
	replace cpi=1.01388713 if year==2015
	replace cpi=1.0168697 if year==2014
	replace cpi=0.985714 if year==2012
	replace cpi=0.958730 if year==2011
	replace cpi=0.926455 if year==2010
	replace cpi=0.915344 if year==2009
	replace cpi=0.915344 if year==2008
	replace cpi=0.879365 if year==2007
	replace cpi=0.858201 if year==2006
	replace cpi=0.843386 if year==2005
	replace cpi=0.835979 if year==2004
	replace cpi=0.834392 if year==2003
	replace cpi=0.826984 if year==2002
	replace cpi=0.814286 if year==2001
	replace cpi=0.794180 if year==2000
	replace cpi=0.768254 if year==1999
	replace cpi=0.759259 if year==1998
	replace cpi=0.748677 if year==1997
	replace cpi=0.739683 if year==1996
	replace cpi=0.735450 if year==1995
	replace cpi=0.728042 if year==1994
	replace cpi=0.720106 if year==1993
	replace cpi=0.705291 if year==1992
	replace cpi=0.687831 if year==1991
	replace cpi=0.660339 if year==1990
	replace cpi=0.622471 if year==1989
	replace cpi=0.583864 if year==1988
	
save "${dataout}cpi.dta" , replace 
